package com.gjy.spring.controller;

import com.gjy.spring.exception.custom.AppException;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-01-24 09:50:10
 */
@RestController
@RequestMapping("/exception")
public class ExceptionController {

    @PostMapping("/app")
    public ResponseEntity<String> app() throws AppException {
        throw new AppException("app exception");
    }

}
